package com.itheima2;


import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Work09 {
    public static void main(String[] args) throws IOException, IOException {
        FileInputStream fis  =
                new FileInputStream("D:\\itcast\\窗里窗外.txt");
        FileOutputStream fos =
                new FileOutputStream("D:\\itcast2\\窗里窗外.txt");

        byte[] bytes = new byte[1024];
        int len;
    while ((len=fis.read(bytes))!=-1){
        fos.write(bytes,0,len);
    }
    fis.close();
    fos.close();
    }
}
